<script>
import api from '@/api/index'

export default {
  name: "index",
  data() {
    return {
      total: 0,
      tableData: [],
      queryParam: {
        pageSize: 2,
        pageNum: 1
      }
    }
  },
  mounted() {
    this.fetchData()
  },
  methods: {
    async fetchData() {
      let data = await api.gong_kai_zhi_lan(this.queryParam);
      console.log('>>>>>>>>>>>data', data)
      this.tableData = data.records;
      this.total = data.total
    },
    handleCurrentChange(size) {
      this.queryParam.pageNum = size
      this.fetchData()
    },
    handleSizeChange(size) {
      this.queryParam.pageSize = size
      this.fetchData()
    }
  }
}
</script>

<template>
  <div>
    <el-row>
      <el-col :span="24" v-if="tableData&&tableData.length>0">
        <div class="text-center text-3xl font-bold py-5 text-[#2d66a5]">{{ tableData[0].title }}</div>
        <div class="indent-8" v-html="tableData[0].content" style="max-height: 80vh;overflow: auto"></div>
      </el-col>

    </el-row>
  </div>
</template>

<style scoped>

</style>